
<div class="sendTitleDiv marginleft10">
    {$module }
</div>
<form id="frm_link" action="__URL__/save.shtml" method="post">
    <input type="hidden" name="id" value="{$link.id }" />
    <div class="width100Percent margintop20">
        <table class="formTable">
            <tr>
                <td>
                    <span>合作伙伴名称</span>
                </td>
                <td>
                    <input id="txt_name" type="text" name="name" class="{required:true}"  value="{$link.name }" />
                    <span class="redSpan">*</span>
                </td>
            </tr>
            <tr>
                <td>
                    <span>合作伙伴地址</span>
                </td>
                <td>
                    <input type="text" name="link" class="{required:true, url : true}" value="{$link.link }" />
                    <span class="redSpan">*</span>
                </td>
            </tr>
            <tr>
                <td>
                    <span>频道</span>
                </td>
                <td>
                    <select id="sel_fl_model" name="module">
                        <volist id="m" name="modules">
                            <option value="{$m}">{$m}</option>
                        </volist>
                    </select>
                    <span class="redSpan">*</span>
                </td>
            </tr>
        </table>
    </div>
    <div class="buttonRight margintop20">
        <input id="btn_notice_add_submit" type="button" class="buttonStyle" value="确定" />
        <input id="btn_notice_add_reset" type="reset" class="buttonStyle" value="重置" />
    </div>
</form>

<script>
    $(function(){
        $("#btn_notice_add_submit").click(function(){
            /*$("#frm_link").validate({
                rules : {
                    name : {
                        remote : {
                            url : "__URL__/findFLByName.shtml",
                            type : "post",
                            data : {
                                name : function() {
                                    return $.trim($("#txt_name").val());
                                },
                                module : function(){
                                    return $.trim($("#sel_fl_model").val());
                                }
                            }
                        }
                    }
                },
                messages : {
                    name : {
                        remote : "合作伙伴名称已存在"
                    }
                },
                onsubmit : true
            }
    
        );*/
            $("#frm_link").submit();
        });
    });
</script>


